* {
    margin: 0;
    padding: 0;
    user-select: none;
    list-style: none;
}
body {
    background-color: #1e1e1e;
}

.wrap {
    width: 100%;
    margin: 200px auto;
}
.wrap ul {
    display: flex;
    margin: auto;
    justify-content: center;
    align-items: center;
}

.wrap ul>li{
    margin: 30px;
    width: 300px;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.wrap .up {
    position: absolute;
    top : 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #333;
    transition: all .8s;
    transform-origin: 150px 100px 100px;
}

.wrap .up img {
    width: 100px;
    height: 100px;
}

.wrap .up h3{
    margin-top: 10px;
    color : #fff;
    font-size: 20px;
}


.down {
    position: absolute;
    box-sizing: border-box;
    padding: 20px;
    top : 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    transform-origin: 150px 100px 100px;
    transform: rotateX(90deg);
    transition: transform .8s;  
   
}


.wrap ul>li:hover .up{
    background-color: #ff0057;
    transform: rotateX(-90deg);
}
.wrap ul>li:hover .down{
    transform: rotateX(0); 
}
